package main

import (
	"fmt"
	"time"
)

func main() {
	defer_call()
}

func defer_call() {

	go func() {
		defer func() { fmt.Println("打印前") }()
		defer func() { fmt.Println("打印中") }()
		defer func() { fmt.Println("打印后") }()

		panic("触发异常")

		fmt.Printf("11111111\n")
	}()

	fmt.Printf("2222222\n")

	time.Sleep((time.Second * 3))

}
